﻿using System;
using System.Linq;
namespace Xc.DataAccess.PcpChannels
{
    /// <summary>
    ///应答设备 上报升级包下载状态
    /// </summary>
    public class DeviceUploadUpgradeStatusRespond : RequestFrame
    {
        public override MessageCode MessageCode => MessageCode.UploadUpgradeStatus;
        /// <summary>
        /// 执行状态
        /// </summary>
        public UploadUpgradeStatus Status { get; set; }
        public override byte[] DataArea
        {
            get
            {
                return new byte[] { (byte)Status };
            }
        }
        public enum UploadUpgradeStatus
        {
            Ok = 0,
            NotExist = 0x80
        }
    }
}
